package com.fjxd.feign.config;

import com.fjxd.feign.fallback.CityClientFallbackFactory;
import com.fjxd.feign.fallback.PlaneTicketClientFallbackFactory;
import com.fjxd.feign.fallback.UserClientFallbackFactory;
import org.springframework.context.annotation.Bean;

/**
 * @author csw
 */
public class DefaultFeignConfiguration {
    @Bean
    public UserClientFallbackFactory userClientFallbackFactory(){
        return new UserClientFallbackFactory();
    }
    @Bean
    public PlaneTicketClientFallbackFactory planeTicketClientFallbackFactory(){
        return new PlaneTicketClientFallbackFactory();
    }
    @Bean
    public CityClientFallbackFactory cityClientFallbackFactory(){
        return new CityClientFallbackFactory();
    }
}
